package com.qhnu.zxjx.model.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @description: 分页返回值
 * @author: panpei
 * @date: 2019/7/30 8:56
 * @version: 1.0
 **/
@Data
@ApiModel(value = "分页返回值")
public class PageResponse<T> {

    @ApiModelProperty(value = "总记录数")
    private Integer total = 0;

    @ApiModelProperty(value = "当前页记录")
    private List<T> items = new ArrayList<>();
}
